import instance from "@/util/request";
// 定义接口请求
//查询UserInfoList
export const UserInfoList = (() => {
return instance({
method:'GET',
url:'http://127.0.0.1:9090/ssm/list'
})
})
//登录验证
export const loginStatus = (data) => {
console.log('data',data);
return instance({
method:'POST',
url:'/ssm/admin/login/status',
data
})
}
export function loginUser (data){
	console.log("接收到的data=",data)
	return instance({
	method:'POST',
	url:'/user/login/'+data.username+'/'+data.password,
	data,
	})}
export function findById (id){
	console.log("接收到的data=",id)
	return instance({
	method:'get',
	url:'/user/me/'+id,
	})}
	export function register (data){
		console.log("接收到的data=",data)
		return instance({
		method:'POST',
		url:'/user/register',
		data:{
			username: data.value.username,
			password: data.value.userpwd,
			phone: data.value.userphone
		},
		})}
